package com.wnxy.sddfp.client.bank.callback;

import com.wnxy.sddfp.client.bank.TestBankApi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
public class TestBankApiCallback implements TestBankApi {
    @Override
    public String findBankByIdTest(Integer bankId) {
        return "配置了Sentinel限流，QPS单机阈值1，超出就服务降级";
    }
}
